/*
 * @(#)ErrorConstant.java
 *
 * Copyright (c) 2003 DCIVision Ltd
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of DCIVision
 * Ltd ("Confidential Information").  You shall not disclose such Confidential
 * Information and shall use it only in accordance with the terms of the license
 * agreement you entered into with DCIVision Ltd.
 */
package com.dcivision.workflow.applet.net;

/**
  ErrorConstant.java

  This class is to store all error code constants which used in systems.

    @author          Rollo Chan
    @company         DCIVision Limited
    @creation date   24/06/2003
    @version         $Revision: 1.1 $
*/

public class ErrorConstant {

  public static final String REVISION = "$Revision: 1.1 $";

  protected ErrorConstant() {
  }

  public final static String DB_GET_CONN_ERROR = "errors.framework.db_conn";
  public final static String DB_GET_NEXT_SEQ_ERROR = "errors.framework.get_next_seq";
  public final static String DB_COMMIT_ERROR = "errors.framework.commit";
  public final static String DB_ROLLBACK_ERROR = "errors.framework.rollback";
  public final static String DB_GENERAL_ERROR = "errors.framework.general_db_error";
  public final static String DB_CONCURRENT_ERROR = "errors.framework.concurrent";
  public final static String DB_SELECT_ERROR = "errors.framework.select";
  public final static String DB_INSERT_ERROR = "errors.framework.insert";
  public final static String DB_UPDATE_ERROR = "errors.framework.update";
  public final static String DB_DELETE_ERROR = "errors.framework.delete";
  public final static String DB_COPY_ERROR = "errors.framework.copy";
  public final static String DB_RECORD_NOT_FOUND_ERROR = "errors.framework.record_not_found";

  public final static String COMMON_FATAL_ERROR = "errors.framework.fatal_error";
  public final static String COMMON_UNKNOWN_OPERATION = "errors.framework.unknown_operation";
  public final static String COMMON_UNKNOWN_NAVIGATION = "errors.framework.unknown_navigation";
  public final static String COMMON_UNKNOWN_DAO = "errors.framework.unknown_dao";
  public final static String COMMON_UNAUTHORIZED_ACCESS = "errors.framework.unauthorized_access";

  public final static String LOGIN_DEMO_TOO_MANY_CONCURRENT_USER = "errors.login.demo_too_many_concurrent_user";
  public final static String LOGIN_AUTH_CLASS_NOT_FOUND = "errors.login.auth_class_not_found";
  public final static String LOGIN_NO_USER_RECORD = "errors.login.no_user_record";
  public final static String LOGIN_WRONG_PASSWORD = "errors.login.wrong_password";
  public final static String LOGIN_ACCOUNT_LOCKED = "errors.login.account_locked";
  public final static String LOGIN_ACCOUNT_LOCKED_ATTEMPT = "errors.login.account_locked_attempt";
  public final static String LOGIN_SESSION_EXPIRED = "errors.login.session_expired";
  public final static String LOGIN_DOUBLE_LOGIN = "errors.login.double_login";
  public final static String LOGIN_PASSWORD_EXPIRED = "errors.login.password_expired";
  public final static String LOGIN_ORIGINAL_PASSWORD_INCORRECT = "errors.login.original_password_incorrect";

  public final static String SYS_DUPLICATE_INDEX_FORM = "errors.framework.duplicate_index_form";
  public final static String SYS_DUPLICATE_INDEX_NAME = "errors.framework.duplicate_index_name";
  public final static String SYS_SCHEDULER_ERROR = "errors.framework.scheduler_error";
  public final static String SYS_CHARACTER_ERROR = "errors.framework.character_error";

  public final static String INDEX_CANNOT_OPEN_INDEX_FILE = "errors.framework.cannot_open_index";
  public final static String INDEX_CANNOT_WRITE_INDEX = "errors.framework.cannot_write_index";
  public final static String INDEX_CANNOT_CLOSE_INDEX_FILE = "errors.framework.cannot_close_index";

  public final static String CALENDAR_OVERLAP_ERROR = "errors.calendar.overlap_error";
  public final static String CALENDAR_RECURRING_RANGE_ERROR = "error.calendar.recurring_date_range";
  public final static String CALENDAR_RECURRING_START_DATE_ERROR = "error.calendar.recurring_start_date";
  public final static String CALENDAR_RECURRING_START_DATE_PRIORDUEDATE_ERROR = "errors.calendar.recurring_start_date_priorduedate";

  public final static String WORKFLOW_PROCESSOR_NOT_OPERATE_SECTION = "errors.workflow.workflow_processor_not_operate_section";
  public final static String WORKFLOW_NEXT_STEP_DUE_DATES_REQUIRED = "errors.workflow.next_step_due_dates_required";
  public final static String WORKFLOW_DUE_DATE_CANNOT_BE_LESS_THAN_CURRENT_DATE = "errors.workflow.due_date_cannot_be_less_than_current_date";

  public final static String FORM_IMPORT_HTML_NOT_FOUND_SECTION = "errors.form.import_html_not_found_section";
  public final static String FORM_UPLOAD_FILE_FAIL = "errors.form.upload_file_fail";
  public final static String FORM_FILE_FORMATE_IS_NOT_HTML ="errors.form.file_format_is_not_html";
  public final static String FORM_FILE_FORMATE_IS_NOT_PDF ="errors.form.file_format_is_not_pdf";
  public final static String FORM_FILE_IS_NULL  ="errors.form.file_is_null";
  public final static String FORM_THE_BUTTON_OF_SAVE_AND_SUBMIT_ARE_REQUIRED ="errors.form.the.button.of.save.and.submit.are.required";  
  public final static String FORM_SUBMISSION_DUPLICATE_FIELD_VALUE = "errors.form_submission_duplicate_field_value";
  
  public final static String USER_IMPORT_DATA_FAIL = "errors.user.import_data_fail";
  public final static String USER_FILE_FORMATE_IS_NOT_XLS = "errors.user.file_format_is_not_xls";  
  
  public final static String USER_DOCUMENT_FORMATE_IS_NOT_XLS = "errors.dms.file_error"; 
  public final static String USER_FILE_IS_EMPTY = "errors.dms.file_xls_error";

  public final static String DMS_MESSAGE_NO_SHORTCUT_PERMISSION = "dms.message.shortcut_not_permission";
  public final static String DMS_MESSAGE_IS_ALREADY_SHORTCUT = "dms.message.is_already_shortcut";
  public final static String DMS_MESSAGE_CHECKOUT_NOT_DELETE ="dms.message.checkout_not_delete";
}
